import random;
while int(input( '输入任意整数开始，输0退出:\n')): 
    print(random.randint(1,6))